QT       += widgets network

CONFIG += debug
DEFINES -= QT_NO_DEBUG

# 优化链接设置
QMAKE_LFLAGS += -Wl,-rpath,\'\$$ORIGIN/lib\'

TARGET = network_manager_gui
TEMPLATE = app

SOURCES += \
    main.cpp \
    mainwindow.cpp \
    networkcardwidget.cpp \
    networkinfo.cpp \
    statusmessagewidget.cpp \
    networkcontrol.cpp \
    networkdiagnosewidget.cpp \
    networkstatusdialog.cpp \
    networkdetaildialog.cpp \
    networkpropertydialog.cpp \
    ipv4propertydialog.cpp \
    advanceddialog.cpp \
    routemanagerdialog.cpp \
    routeeditdialog.cpp \
    bondconfigdialog.cpp \
    bridgeconfigdialog.cpp \
    aboutdialog.cpp

HEADERS += \
    mainwindow.h \
    networkcardwidget.h \
    networkinfo.h \
    statusmessagewidget.h \
    networkcontrol.h \
    networkdiagnosewidget.h \
    networkstatusdialog.h \
    networkdetaildialog.h \
    networkpropertydialog.h \
    ipv4propertydialog.h \
    advanceddialog.h \
    routemanagerdialog.h \
    routeeditdialog.h \
    bondconfigdialog.h \
    bridgeconfigdialog.h \
    aboutdialog.h

FORMS += \
    mainwindow.ui \
    bondconfigdialog.ui \
    bridgeconfigdialog.ui

# 使用pkg-config自动处理Polkit-Qt-1的库和头文件路径
CONFIG += link_pkgconfig
PKGCONFIG += polkit-qt5-1

RESOURCES += resources.qrc